home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / versedit.zip / MAK.BAT < prev    next >
DOS Batch File  |  1987-09-07  |  2KB  |  45 lines

  1. echo off
  2. ECHO  This sample batch procedure is to be used instead of CLE.BAT, if you
  3. ECHO  use a MAKE utility.  It executes your MAKE utility directing its messages
  4. ECHO  to a file.  In case of errors, this procedure executes VersiEdit to view
  5. ECHO  the message file.  At this point you would bring in the source code file
  6. ECHO  in error and correct it.  After which, the process is repeated from the
  7. ECHO  beginning.
  8. ECHO  
  9. ECHO  This procedure must be modified to reflect your programming environment
  10. ECHO  as indicated by remarks in the text of the procedure.
  11. goto end
  12. echo off
  13. REM  After modification, this procedure is executed by entering at DOS prompt:
  14. REM  MAK "file", where "file" is the name of your MAKE parameter.  The "file"
  15. REM  is also the value of the %1 parameter in this procedure.
  16. REM
  17. REM  MODIFICATION INSTRUCTIONS:
  18. REM
  19. REM  1.  Make sure that this file is backed up.
  20. REM  2.  Remove the initial lines up to and including "goto end".
  21. REM  3.  Modify the MAKE statement as needed for your environment.  %1 para-
  22. REM      meter contains the name of your MAKE parameter file.
  23. REM
  24. REM  ** END OF MODIFICATION INSTRUCTIONS **
  25. :beg
  26. REM Execute Make program
  27. make %1 >err.msg
  28. if not ERRORLEVEL 1 goto ex
  29. REM An error has occurred, edit error message file.
  30. REM Based on the contents of the error message file,
  31. REM you would manually bring in the source code file that is in error.
  32. e err.msg
  33. REM  Allow exit from the loop.
  34. echo  
  35. echo  
  36. echo ** Press ^C to Abort, Any Other Key to Continue **
  37. pause
  38. goto beg
  39. :ex
  40. REM  Display the message file.  It may contain warning messages that
  41. REM  did not trigger the error processing loop.
  42. type err.msg
  43. :end
  44.  
  45.